# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=ttf-font-awesome
_pkgname=Font-Awesome
pkgver=5.13.1
pkgrel=0
pkgdesc="Iconic font designed for Bootstrap TTF file only"
url="https://fortawesome.github.io/Font-Awesome/"
arch="noarch"
license="CC"
options="!check"
depends="fontconfig mkfontdir mkfontscale"
makedepends="font-util-dev"
install="$pkgname.post-install"
source="$pkgname-$pkgver.tar.gz::https://github.com/FortAwesome/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

package() {
	install -d "$pkgdir/usr/share/fonts/TTF"
	install -d "$pkgdir/usr/share/fonts/X11/OTF"
	install -m644 otfs/*.otf "$pkgdir/usr/share/fonts/X11/OTF/"
	install -m644 webfonts/*.ttf "$pkgdir/usr/share/fonts/TTF/"
}
sha512sums="944d34b1e7519f7eeb6aa8207766aaa6e278dc9b4926d52cae6196824bf3a52c19b23f068c7334435cb205c8c37d5af62cf6fec91ae4641492c48f9cf03962cf  ttf-font-awesome-5.13.1.tar.gz"
